﻿<Window x:Class="TFhisto.Extension.Selection"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="File selection" Height="274" Width="400" ResizeMode="NoResize">
    <Grid>
        <GroupBox Header="Select the files above you want to track" Height="130" Margin="12,12,12,0" Name="groupBox1" VerticalAlignment="Top">
            <ScrollViewer Margin="5,5,5,5" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Width="Auto">
                <ListBox Name="lstSelectedFiles" Height="Auto" OverridesDefaultStyle="False" VerticalAlignment="Top">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Name="SelectedFilesList">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <CheckBox Grid.Column="0" IsChecked="{Binding Path=Checked}" VerticalAlignment="Center" />
                                <Label Content="{Binding Path=FileName}" Grid.Column="1" ToolTip="{Binding Path=FullPath}" IsEnabled="{Binding Path=Selected}" />
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </ScrollViewer>
        </GroupBox>
        <TextBlock Margin="12,157,12,25" Name="ErrorMessage" Text="No valid file has been identified from your selection in the solution explorer. If you sent a special file (eg. a .aspx.cs or .Designer.cs file), retry the same operation at the parent level." TextWrapping="Wrap" />
        <Button Content="Close" Height="23" HorizontalAlignment="Right" Margin="0,0,12,12" Name="btnClose" VerticalAlignment="Bottom" Width="75" Click="btnClose_Click" />
    </Grid>
</Window>
